package com.ruoyi.web.controller.lingshui.conpermit;

import java.util.ArrayList;
import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.supervise.domain.ConstructionPermit;

/**
 * @ClassName: ConPermitBossController
 * @Description: 施工许可主管部门操作接口（政策变动，后期要移除）
 * @Author wtj
 * @DateTime 2020-9-16 14:55:38
 */
@Controller
@RequestMapping("/conpermit/boss")
public class ConPermitBossController extends BaseController {
	private String prefix = "lingshui/conpermit/boss";
	
	/**
	 * @Title: accept
	 * @Description: 跳转到主管部门受理页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:17:41
	 * @return
	 */
	@RequiresPermissions("conpermit:boss:view")
	@GetMapping("/accept")
	public String accept()
	{
	    return prefix + "/constructionPermit";
	}
	
	/**
	 * @Title: check
	 * @Description: 跳转到主管部门审查页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:18:01
	 * @return
	 */
	@RequiresPermissions("conpermit:boss:view")
	@GetMapping("/check")
	public String check()
	{
	    return prefix + "/constructionPermit";
	}
	
	/**
	 * @Title: first
	 * @Description: 跳转到主管部门初审页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:18:33
	 * @return
	 */
	@RequiresPermissions("conpermit:boss:view")
	@GetMapping("/first")
	public String first()
	{
	    return prefix + "/constructionPermit";
	}
	
	/**
	 * @Title: twic
	 * @Description: 跳转到主管部门复审页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:18:53
	 * @return
	 */
	@RequiresPermissions("conpermit:boss:view")
	@GetMapping("/twic")
	public String twic()
	{
	    return prefix + "/constructionPermit";
	}
	
	/**
	 * @Title: exam
	 * @Description: 跳转到主管部门审批页面
	 * @Author wtj
	 * @DateTime 2020-9-16 15:19:13
	 * @return
	 */
	@RequiresPermissions("conpermit:boss:view")
	@GetMapping("/exam")
	public String exam()
	{
	    return prefix + "/constructionPermit";
	}
	
	/**
	 * @Title: list
	 * @Description: 列表获取数据
	 * @Author wtj
	 * @DateTime 2020-9-16 15:19:32
	 * @return
	 */
    @RequiresPermissions("conpermit:boss:view")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list()
    {
    	List<ConstructionPermit> constructionPermitList = new ArrayList<ConstructionPermit>();
    	return getDataTable(constructionPermitList);
    }
}
